const website = [
  {
    name: "3dmGame", // 网站名
    homePath: "https://www.3dmgame.com/bagua_all_", // 图集首页
    links: ".news_list a", // 图集链接选择器
    selector: ".news_warp_center img", // 图片选择器
    next: ".next a", // 下一页链接选择器
    pageName: (page) => page, // 图集分页尾部路径
    getTitle: (parent) => parent.find(`.bt`).text(), // 图集名称
    keyword: "福利", // 图集关键词搜索
    maxPage: 1, // 菜单页最大搜索页数
  },
  {
    name: "Ali213",
    homePath: "https://www.ali213.net/news/zl/amuse/",
    links: ".subscribe-li>div>a",
    selector: "#Content p img",
    next: "#after_this_page",
    pageName: (page) => (page === 1 ? "" : `index_${page}.html`),
    getTitle: (parent) => parent.text(), // 图集名称
    keyword: "COSER", // 图集关键词过滤
    maxPage: 1, // 菜单页最大搜索页数
  },
  {
    name: "Ali213",
    homePath: "https://www.ali213.net/news/amuse/",
    links: "h2 a",
    selector: "#Content p img",
    next: "#after_this_page",
    pageName: (page) => (page === 1 ? "" : `index_${page}.html`),
    getTitle: (parent) => parent.attr("title"), // 图集名称
    keyword: "岛国纯欲系COSER", // 图集关键词过滤
    maxPage: 100, // 菜单页最大搜索页数
  },
  {
    name: "柠檬皮",
    homePath: "https://www.emonl.com/cosplay/",
    links: "article h2 a",
    selector: "p img",
    next: ".nav-links .next",
    pageName: (page) => `page/${page}/`,
    getTitle: (parent) => parent.text(), // 图集名称
    keyword: "", // 图集关键词过滤
    maxPage: 1, // 菜单页最大搜索页数
  },
];
// 外网网站(需要代理)
const outSite = [
  {
    name: "misskon",
    homePath: "https://misskon.com/",
    links: "article h2 a",
    selector: "p img",
    next: ".page-link span + a",
    pageName: (page) => (page === 1 ? "" : `/page/${page}`),
    getTitle: (parent) => parent.text(), // 图集名称
    keyword: "财团", // 图集关键词过滤
    maxPage: 1, // 菜单页最大搜索页数
  },
  {
    name: "绅士",
    homePath: "https://www.wn01.cc/albums-index-",
    links: ".gallary_wrap li .pic_box a",
    selector: ".grid li img",
    // next: ".page-link .current",
    next: ".next a",
    pageName: (page) =>
      page === 1 ? "cate-3.html" : `page-${page}-cate-3.html`,
    getTitle: (parent) => parent.attr("title"), // 图集名称
    keyword: "鸣潮", // 图集关键词过滤
    maxPage: 1, // 菜单页最大搜索页数
  },
  {
    name: "微图坊",
    // homePath: "https://www.v2ph.com",
    homePath: "https://www.v2ph.com/country/south-korea",
    isOrigin: true,
    links: ".card .card-body .h6 a",
    selector: ".photos-list .album-photo img",
    // next: ".pagination .page-item:nth-last-child(2) a",
    next: ".pagination .page-item:nth-last-child(2)",
    pageName: (page) => `?page=${page}`,
    getTitle: (parent) => parent.text(), // 图集名称
    keyword: "Hansom", // 图集关键词过滤
    maxPage: 1, // 菜单页最大搜索页数
  },
  {
    name: "柠檬皮",
    homePath: "https://www.emonl.com/cosplay",
    pageName: (page) => `/page/${page}/`,
    links: "main article .grid-title a",
    getTitle: (parent) => parent.text(),
    selector: ".single-content p img",
    next: ".page-links .current + a",
    keyword: "九言",
    maxPage: 1,
  },
  {
    name: "BuonDua",
    homePath: "https://buondua.com/",
    pageName: (page) => `?start=${(page - 1) * 20}`,
    links: ".blog .items-row .page-header h2 a",
    getTitle: (parent) => parent.text(),
    selector: ".article-fulltext p img",
    next: ($) =>
      $(".pagination:first-of-type .is-current")
        .parent()
        .next()
        .find("a")
        .attr("href"),
    keyword: "肉包",
    maxPage: 1,
  },
];
// 代理设置
export const proxy = {
  useProxy: true, // 控制代理的开关
  address: "http://127.0.0.1:33210", // 代理地址
};
// 网站信息
export const netSite = outSite[4];
